php5-geoip software package provides GeoIP module for php5, you can install in your Ubuntu 14.04 LTS (Trusty Tahr) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install php5-geoip
php5-geoip is installed in your system.
Make ensure the php5-geoip package were installed using the commands given below,
$ sudo dpkg-query -l | grep php5-geoip *
You will get with php5-geoip package name, version, architecture and description in a table
| Distro | Ubuntu 14 04 lts trusty tahr |
| Section | Web Software |
| Package | php5-geoip |
| Version | 1.0.8-5build1 |
| Description | GeoIP module for php5 |
| Sub Section | Web |